ironed out problems for simple case. ready for larger-scale testing
more on bots