partially updated for 3.03 firmware (from fred)