refactor setting buildpack env. variables as a framework