reimplementation in starcam.cpp