add jsp mode support