renamed files and added multiple parameters to on and off