clean up plain api, working on lightbox functionality again