add items, fix path for mac os, catch errors