further changes to match clamd protocol