upload pos_scan_ref skeleton + copy-pasted scan function
update original scan function