add weakmap to mkrun