move binder functions to own module
type style flags and options
avoid stack overflow with elem functions
adjustments for prev. changes