pass all arguments to emit
working on argument passing config