moved filesystem init further up, to be able to log errors earlier