closes #1 in a quite unelegant way