main serever functions added