made metadata work on old versions of wdb