minor cleanup, removed scriptCode as requirement