add some code to support slub