ensure all script and group callbacks are functions (empty if not passed)