added compiled error functionality