better conf
removed malloc as much as possible as it does not work