made filemode less restrictive