port settings and fix some bookmark & history bugs.