added master API definitions and slave stub