receive commands from clients

does not work - temp file