fix calltime pass-by-reference
fix array out-of-bounds when connecting from a hostname with no periods (i.e. localhost)