add possibility to return newly created objects