replace localhost by 127.0.0.1 to fix problem with IPV6; closes #33