support for multi line scripts in calculate