debugged and now pulling input into API string