refactor processing of qbe errors
rearrange imports as per coding standards