improved ajax interface for future extention