code cleanup
add debug switch to utils-submit
add debug messages in case submitting a sample fails