changes to theano-rnn