add mockajax & rewrite models