fix for commandline build