add logging to create