cleaned out some way old xml mode config and hooks!