trying to fix filemode