added capability to run with real photometry