fixes #4 (through the whole thing seems buggy