small fixes in submit scripts
changed script to use submit_main