bsd stat changes verified, contribution from mcmajkel merged