minor fixes, ability to get metadata