fix filename and permissions