translations caching, fixed permissions, little fixes and refactoring