move folder related functions to folder util