added folder listing function