adaptations for ajax v0.3.0