using error trait in core classes
implemented global static error trait functions