started api stuff