add depends, set max size correctly