changed APIHandler class to final, and now the methods are all static.