new version with user id saved in config