adding error trace