fixed permissions and flash message translation