initial code from prod server