added some mac workarounds for working with ps