filehandling for gannetmasl