some changes before ASP processing