some style constants and hooks
redirect hook
fixes #857