build latest with beforeActive option