recordshell backwards compatibility

This is the best I could do. I think if I gave this some more thought, we should be able to do something better, but this should allow recordshell to work for now. @ravinet would be good to check that recordshell continues to work.