fixed require paths. added function call