generate AM, allow remote invoke, fix pub keys JSON, reduce one step