make hostname an optional argument for sending events