finalize for deployment