Index: /branches/eam_branch_20081026/psphot/src/psphotReadout.c
===================================================================
--- /branches/eam_branch_20081026/psphot/src/psphotReadout.c	(revision 20405)
+++ /branches/eam_branch_20081026/psphot/src/psphotReadout.c	(revision 20406)
@@ -1,3 +1,12 @@
 # include "psphotInternal.h"
+
+// this should be called by every program that links against libpsphot
+bool psphotInit () {
+
+    psphotErrorRegister();              // register our error codes/messages
+    psphotModelClassInit ();            // load implementation-specific models
+    psphotSetThreads ();
+    return true;
+}
 
 bool psphotReadout(pmConfig *config, const pmFPAview *view) {
