api mostly functioning