[#75] refactoring of resource manager and preferences