other: use define macro for shorter error returns handle