only emit warning if option is set

fixes #36