add before script to debug build