started to add basic support for ajax