remove old files, update API pattern