Fixed: missing root function argument in require module definition
Misc: cleaned up fetch function