metadata + more error logging