added logic to test if it works in dev mode