adding method for received commands execution.