minimization with demon 4.1.4 since 4.2 seems to not be working