splitted server commands and added logging for it