add support for custom bins