changed scripts to be run as entry points