starm: prepare for plugin/app architecture