add debugger for development mode
add automatic field fetching for post aggregation queries