fixed configuration to work on command line and pom