adding require statements to entities