refactoring of all res files