general app cleanup, get api router to work