refactoring to make the code clear and simple and fix some bugs
refactoring to make the code clear and simple and fix some bugs

m4ce/influxdb,slachiewicz/influxdb,linearb/influxdb,100star/influxdb,ASAPPinc/influxdb,linfangrong/influxdb,cabify/influxdb,influxdb/influxdb,egymgmbh/influxdb,mvadu/influxdb,marcosnils/influxdb,nickscript0/influxdb,joaopedrotaveira/influxdb,tommymei/influxdb,Wikia/influxdb,arussellsaw/influxdb,jgeiger/influxdb,fg2it/influxdb,nickrobinson/influxdb,DanielMorsing/influxdb,fxstein/influxdb,vladlopes/influxdb,IMCG/InfluxDB,pablolmiranda/influxdb,haim0n/influxdb,CrazyJvm/influxdb,alexiri/influxdb,pablolmiranda/influxdb,jipperinbham/influxdb,no2key/influxdb,tommymei/influxdb,jonseymour/influxdb,jipperinbham/influxdb,linearb/influxdb,mark-rushakoff/influxdb,otoolep/influxdb,runcom/influxdb,mengjinglei/influxdb,imcom/influxdb,influxdb/influxdb,nooproblem/influxdb,bspline/influxdb,nooproblem/influxdb,ASAPPinc/influxdb,ezotrank/influxdb,archsaber/influxdb,jportoles/influxdb092,josephcopenhaver/influxdb,brunoqc/influxdb,mre/influxdb,paulstuart/influxdb,apigee/influxdb,jportoles/influxdb092,otoolep/influxdb,bspline/influxdb,nickrobinson/influxdb,Ancillas/influxdb,CVTJNII/influxdb-tjnii,josephcopenhaver/influxdb,apigee/influxdb,slachiewicz/influxdb,nickrobinson/influxdb,roobert/influxdb,arussellsaw/influxdb,Wikia/influxdb,eminden/influxdb,otoolep/influxdb,benbjohnson/influxdb,mvadu/influxdb,lgpeterson/influxdb,hyperworks/influxdb,slavau/influxdb,Venu4thFeb/influxdb,wxdublin/influxdb,dneuman64/influxdb,apriendeau/influxdb,toorop/influxdb,brunoqc/influxdb,fg2it/influxdb,cannium/influxdb,lgpeterson/influxdb,s7v7nislands/influxdb,paulstuart/influxdb,tjyang/influxdb,timraymond/influxdb,tuxmonteiro/influxdb,egymgmbh/influxdb,ninjasphere/influxdb,archsaber/influxdb,michaelsproul/influxdb,nooproblem/influxdb,pkittenis/influxdb,rnubel/influxdb,mcanthony/influxdb,timraymond/influxdb,timraymond/influxdb,li-ang/influxdb,Mindera/influxdb,brunoqc/influxdb,samaitra/influxdb,nckturner/influxdb,rabdureh/influx-attempt,slavau/influxdb,cabify/influxdb,no2key/influxdb,100star/influxdb,influxdata/influxdb,radcheb/influxdb,mengjinglei/influxdb,IMCG/InfluxDB,influxdb/influxdb,ASAPPinc/influxdb,pkittenis/influxdb,slavau/influxdb,Ancillas/influxdb,ezotrank/influxdb,endophage/influxdb,imcom/influxdb,m4ce/influxdb,toorop/influxdb,gdi2290/influxdb,IMCG/InfluxDB,arussellsaw/influxdb,benbjohnson/influxdb,Tony133/influxdb,nickscript0/influxdb,atyenoria/influxdb,egymgmbh/influxdb,mash0304/influxdb,kingland/influxdb,egymgmbh/influxdb,jonseymour/influxdb,influxdata/influxdb,neonstalwart/influxdb,DanielMorsing/influxdb,vladlopes/influxdb,mash0304/influxdb,Sotfo/influxdb,rabdureh/influx-attempt,runner-mei/influxdb,mnuessler/influxdb,mcanthony/influxdb,kingland/influxdb,pablolmiranda/influxdb,CVTJNII/influxdb-tjnii,luciotorre/influxdb,Wikia/influxdb,nickrobinson/influxdb,michaelsproul/influxdb,mark-rushakoff/influxdb,wxdublin/influxdb,jipperinbham/influxdb,runner-mei/influxdb,paulstuart/influxdb,GrimDerp/influxdb,dneuman64/influxdb,runner-mei/influxdb,mengjinglei/influxdb,stvnwrgs/influxdb,mre/influxdb,mcanthony/influxdb,mark-rushakoff/influxdb,hyperworks/influxdb,apigee/influxdb,toorop/influxdb,endophage/influxdb,cnelissen/influxdb,luciotorre/influxdb,joaopedrotaveira/influxdb,m4ce/influxdb,121watts/influxdb,runcom/influxdb,rabdureh/influx-attempt,lenko-d/influxdb,kingland/influxdb,runner-mei/influxdb,Mindera/influxdb,lgpeterson/influxdb,IMCG/InfluxDB,ninjasphere/influxdb,neonstalwart/influxdb,pdf/influxdb,pdf/influxdb,mmaul/influxdb,roobert/influxdb,daachi/influxdb,luciotorre/influxdb,trigrass2/influxdb,marcosnils/influxdb,ehagan/InfluxDB,Wikia/influxdb,CVTJNII/influxdb-tjnii,endophage/influxdb,stvnwrgs/influxdb,josephcopenhaver/influxdb,ezotrank/influxdb,daachi/influxdb,tjyang/influxdb,alexiri/influxdb,no2key/influxdb,GrimDerp/influxdb,ehagan/InfluxDB,ehagan/InfluxDB,pablolmiranda/influxdb,jonseymour/influxdb,samaitra/influxdb,GrimDerp/influxdb,mre/influxdb,benbjohnson/influxdb,mcanthony/influxdb,evanphx/influxdb,s7v7nislands/influxdb,lenko-d/influxdb,no2key/influxdb,vladlopes/influxdb,archsaber/influxdb,Sotfo/influxdb,cnelissen/influxdb,lenko-d/influxdb,Sotfo/influxdb,bluebreezecf/influxdb,ezotrank/influxdb,linfangrong/influxdb,apriendeau/influxdb,opavader/influxdb,jipperinbham/influxdb,DanielMorsing/influxdb,slachiewicz/influxdb,s7v7nislands/influxdb,roobert/influxdb,trigrass2/influxdb,nickscript0/influxdb,opavader/influxdb,haim0n/influxdb,fxstein/influxdb,endophage/influxdb,opavader/influxdb,eminden/influxdb,n1tr0g/influxdb,eminden/influxdb,marcosnils/influxdb,CVTJNII/influxdb-tjnii,joaopedrotaveira/influxdb,ehagan/InfluxDB,ninjasphere/influxdb,opavader/influxdb,endophage/influxdb,kingland/influxdb,ninjasphere/influxdb,n1tr0g/influxdb,nickrobinson/influxdb,jgeiger/influxdb,ASAPPinc/influxdb,Sotfo/influxdb,n1tr0g/influxdb,m4ce/influxdb,mvadu/influxdb,jgeiger/influxdb,mnuessler/influxdb,Sotfo/influxdb,egymgmbh/influxdb,mmaul/influxdb,timraymond/influxdb,s7v7nislands/influxdb,influxdb/influxdb,paulstuart/influxdb,daachi/influxdb,dneuman64/influxdb,daachi/influxdb,chenziliang/influxdb,linearb/influxdb,jportoles/influxdb092,pdf/influxdb,bluebreezecf/influxdb,121watts/influxdb,pdf/influxdb,ASAPPinc/influxdb,lgpeterson/influxdb,imcom/influxdb,cnelissen/influxdb,Mindera/influxdb,trigrass2/influxdb,fxstein/influxdb,mnuessler/influxdb,Yong-Lee/influxdb,mmaul/influxdb,otoolep/influxdb,Mindera/influxdb,mmaul/influxdb,lenko-d/influxdb,tjyang/influxdb,samaitra/influxdb,mvadu/influxdb,joaopedrotaveira/influxdb,Ancillas/influxdb,jipperinbham/influxdb,fxstein/influxdb,influxdb/influxdb,alexiri/influxdb,GrimDerp/influxdb,tuxmonteiro/influxdb,tjyang/influxdb,jonseymour/influxdb,Mindera/influxdb,lenko-d/influxdb,Mindera/influxdb,runcom/influxdb,michaelsproul/influxdb,fg2it/influxdb,sudabon/influxdb,imcom/influxdb,opavader/influxdb,Yong-Lee/influxdb,nickscript0/influxdb,jgeiger/influxdb,bluebreezecf/influxdb,CrazyJvm/influxdb,paulstuart/influxdb,GoIncremental/influxdb,influxdb/influxdb,bspline/influxdb,cnelissen/influxdb,dneuman64/influxdb,samaitra/influxdb,Yong-Lee/influxdb,tommymei/influxdb,mnuessler/influxdb,Tony133/influxdb,trigrass2/influxdb,Yong-Lee/influxdb,mark-rushakoff/influxdb,linfangrong/influxdb,stvnwrgs/influxdb,roobert/influxdb,rnubel/influxdb,n1tr0g/influxdb,nickscript0/influxdb,rnubel/influxdb,pkittenis/influxdb,jportoles/influxdb092,atyenoria/influxdb,tommymei/influxdb,Wikia/influxdb,gdi2290/influxdb,evanphx/influxdb,pkittenis/influxdb,mnuessler/influxdb,linfangrong/influxdb,wxdublin/influxdb,sudabon/influxdb,arussellsaw/influxdb,luciotorre/influxdb,roobert/influxdb,tuxmonteiro/influxdb,mengjinglei/influxdb,rnubel/influxdb,timraymond/influxdb,marcosnils/influxdb,GrimDerp/influxdb,GoIncremental/influxdb,bspline/influxdb,josephcopenhaver/influxdb,cannium/influxdb,jportoles/influxdb092,Tony133/influxdb,DanielMorsing/influxdb,mmaul/influxdb,samaitra/influxdb,mre/influxdb,cabify/influxdb,imcom/influxdb,apigee/influxdb,archsaber/influxdb,michaelsproul/influxdb,apriendeau/influxdb,eminden/influxdb,bluebreezecf/influxdb,eminden/influxdb,atyenoria/influxdb,luciotorre/influxdb,radcheb/influxdb,mark-rushakoff/influxdb,chenziliang/influxdb,Ancillas/influxdb,michaelsproul/influxdb,marcosnils/influxdb,linearb/influxdb,sudabon/influxdb,runcom/influxdb,otoolep/influxdb,GoIncremental/influxdb,hyperworks/influxdb,nckturner/influxdb,benbjohnson/influxdb,cannium/influxdb,slachiewicz/influxdb,ehagan/InfluxDB,121watts/influxdb,Ancillas/influxdb,toorop/influxdb,tuxmonteiro/influxdb,linfangrong/influxdb,dneuman64/influxdb,pablolmiranda/influxdb,linearb/influxdb,alexiri/influxdb,arussellsaw/influxdb,pkittenis/influxdb,stvnwrgs/influxdb,vladlopes/influxdb,brunoqc/influxdb,nooproblem/influxdb,alexiri/influxdb,stvnwrgs/influxdb,samaitra/influxdb,m4ce/influxdb,neonstalwart/influxdb,mash0304/influxdb,mash0304/influxdb,evanphx/influxdb,tuxmonteiro/influxdb,atyenoria/influxdb,ninjasphere/influxdb,cabify/influxdb,Tony133/influxdb,haim0n/influxdb,otoolep/influxdb,wxdublin/influxdb,nckturner/influxdb,jonseymour/influxdb,mvadu/influxdb,mash0304/influxdb,Tony133/influxdb,brunoqc/influxdb,fxstein/influxdb,Venu4thFeb/influxdb,CrazyJvm/influxdb,mcanthony/influxdb,cnelissen/influxdb,chenziliang/influxdb,apriendeau/influxdb,trigrass2/influxdb,fg2it/influxdb,jgeiger/influxdb,IMCG/InfluxDB,mre/influxdb,arussellsaw/influxdb,sudabon/influxdb,no2key/influxdb,josephcopenhaver/influxdb,slavau/influxdb,apigee/influxdb,CVTJNII/influxdb-tjnii,100star/influxdb,slachiewicz/influxdb,joaopedrotaveira/influxdb,radcheb/influxdb,bluebreezecf/influxdb,cannium/influxdb,mnuessler/influxdb,haim0n/influxdb,daachi/influxdb,DanielMorsing/influxdb,hyperworks/influxdb,n1tr0g/influxdb,hyperworks/influxdb,radcheb/influxdb,wxdublin/influxdb,toorop/influxdb,daachi/influxdb,cabify/influxdb,pdf/influxdb,bspline/influxdb,Venu4thFeb/influxdb,neonstalwart/influxdb,pkittenis/influxdb,evanphx/influxdb,Yong-Lee/influxdb,li-ang/influxdb,Venu4thFeb/influxdb,mvadu/influxdb,Venu4thFeb/influxdb,kingland/influxdb,runcom/influxdb,CrazyJvm/influxdb,rnubel/influxdb,nckturner/influxdb,jipperinbham/influxdb,n1tr0g/influxdb,sudabon/influxdb,rabdureh/influx-attempt,lgpeterson/influxdb,radcheb/influxdb,gdi2290/influxdb,atyenoria/influxdb,CVTJNII/influxdb-tjnii,fg2it/influxdb,nooproblem/influxdb,apigee/influxdb,GoIncremental/influxdb,121watts/influxdb,jgeiger/influxdb,slavau/influxdb,m4ce/influxdb,nckturner/influxdb,sudabon/influxdb,GoIncremental/influxdb,jonseymour/influxdb,chenziliang/influxdb,tommymei/influxdb,apriendeau/influxdb,mark-rushakoff/influxdb