adding api stuff