https://github.com/sciamp/sandbox/issues/5 solved