fix Isathenticated closes #15, closes #12