remove old API code
Merge pull request #526 from flapjack/remove_old_api

remove old API code