how can i create a toggle for a simple file replacement?