added R feat request for log prob and grad for models to to-do