basepath doesnt exist in the new helper function