use open_compresed file and give more output when scanlib fails