added barebones API controller