rewrote script for use with bootstrap.config