authentication working; changed tp library