if script returns function, wrap it to table