resolve hooks having sprintf