added logsig_hard + some other changes