move appid to parametr in init method