made sub/init events wait until the script is done building