seems to work fine under commandline