updated for deployment on ubuntu server