prefer ipv4 stack (fix #358)
fix text color
better refresh algorithm using queues instead of synchronous database call