improve error messages for missing files
0.9.1: fix bugs