added APIcall class