begin porting EOS to Theano