fix order of setup; jacop bug workaround