extract this to a require_relative method perhaps