add real support for bottle 0.10.0 and above