updates and added crf code