different error handling and fixing Codesniffer issues