cleans up devMode logic