it's really simple actually. thanks to a pullrequest from mhart