require definition cleanup