separated peer and server commands