fix submit script
add script to check output
add script to check output