refine engine commands