added hub writing