added strict option to shell function