introduced defines for error codes