made the autoquoting a little smarter