renamed api file and removed some test code