script for pushing files, refactoring optouts