minor fix; wasn't passing metadata dir