hard coded mouse picking. lots of ugly code.