changed to api

Changed the code to use the teksavvy api system now.