a few patchers for constants and new api redirector