support mixed external an inline scripts
post install hook
prevent error if inline script is empty