expose require; add logger