add doc file sniffing
add callback data functionnality