improve submit_sm command