fix issue #6 : add cookie suport