log fixes + can pass a callback for stitching together multiple scripts