remove useless code for old app api