fixed file ending restriction