- fixed silly bug when filenaem passed directly