allow slug to be null