missing device ref, fixes #23