finalize setup