move code from core to this repo, make it into a standalone app