api works. Needs cleanup