removing hardcoded variables, switch to env
inital api commit
utilies for API