add before() for global initialization