printing of head working locally but not on server