basic function done, with password and listen changed