more flexibility in argument passed to logLike

this is useful for Raph model so maybe for other one also