making dev mode work