adding refactored legacy folder