initial capture
formatting
separate out user script