submit and stack done. script not tested and not working)