organized input scripts to separate out the trigger input