add dynamic bootstrap code