fixed better access control, and some network bugs.
authentication bug