added map cmd to api