adding quest functionality