removed old api helper functions