adding structure to quest handling