changes to get input from modelrec
added scripts model rec wrapping