process command beforce execute it