add application control
fix query term size limit