added additional process guards