working on issue366 (still no success)