replace require_relative with require

require_relative causes an error because basepath is unknown