parsing ids from qs