a bit more sane maybe
proper way of doing that