fixed compilation errors after traits refactoring