copied from dev. env. on windows when hunting bug