fixed subtle bugs in core and filewriter
changes from airport and flight