minor behaviour tweaks unix/mac