Restrict allowed labels

fixes #7