doing port index.java