removed dependency on path core module