added functionality for multiple folders