handles most GET requests