code optimization, bugs, improvements
fix for db ATL limitation
Merge pull request #1541 from raymix/master

code optimization, bugs, improvements