enabled auto submit, removed debug line.