get rid of old API code