cleanup and simplifying deployment via flex endpoint, credentials