refs config refactored + named function for mountFolder used in connect