=adding opsim routines