removed check for return value; improved error message; closes #55