trying to simplify the rbm interface a bit