removed useless intermediary api logic