remove jvm headless option
factor logging out of main namespace