change require in opensource module to require relative
final changes