fix: prevent require() loop leading to undefined dependency