allow 0 capacity (for testing purposes)
rebuild
v0.5.5