fix filename
better error message & linux support