Added auth for permament
Added clear env