added more options and flexibility to /utils/submit.py