remove unused methods and files. add auto register in constructor
remove unused interfaces
remove unused flag methods