add resource dump for debugging purposes