works also in BSD