Some class definitions, +flexible bottle config