added some basic exception handling for when items.json isn't overwritten properly