combine bundle option processing in one place for consistency
add events.preventDefault and stopPropagation shortcuts