override prepare to fix issue with hhvm