making it work with netbeans as well