improved options for xhr module