refactoring folder libraries to core