small refactoring
add simple relaycommand implementation