added a bit of make magic
omewhat fixed rrderror - it is still suboptimal
but at least it works for now...