added folder check