remove finalize, making it internal to module.cmake instead