fixed receiving commands