fix file permissions, easthants and lunenburg name_func