debugged opsalg