moved stuff from raspberry.cpp to .h