enhancement for ajax purposes