add option to specify custom configuration
add generic events