get type from config
update docs