cleanups and set metadata