account for coderefs partially