work on adding hooks around transitions