fixed some errors found during first deploy