fix company creation, improve logging