began implementing document handler