adjust spaces, log command before execution