improved order of operations in get link kwargs