bare bones implementation
clean starting and stopping of apps