added another check for psstatus