fixed hieracy for better visibility, and updated hasCrate for strings