working on API, setup env varibles