changing java app to allow args