started to add authentication wrapper