split app and api closes #15