fixed up and worked out what caused paste bug, added per-host config support