updated apis, added apis emulator #284