getting a strange exception, having trouble tracing it