add support for attachments on leaves

Signed-off-by: Sam Heuck <sam@samheuck.com>