improve error msg if not connected
make parsing more robust