async before hooks