allow for more customizable warning messages, closes #55