bug fix no sub folder or inaccesible and one file scenerio