file perms + crash using protocol typealias