added context method for server