add api_refactor branch to spreeup function