moved to integration dir
moved api setup to own class