resolves #4: use prefix for class name if name is unavailable