adding correct policy and debug logs