fixes to properly deploy for the first time