finally got dev mode working well