reformat commands to fit