saving current state before fixing linking error