updates to main script