deployment fixes and logging