initial require() implementation