before command message implementation