Revise internal apis : Remove useless things