cleanup old code that is not supported in ios now