start writing resource serves