add ipv6 compatibility and default domain folder checking