fixed problems for deployment