set up GET functionality