learning cookie utils and psr fixes