copying original code from server it was built for