authentication stuff
working static lib