[ref] refactored for bottle.py
[add] implemented basic functionality