added some functions for folders and channels