init with options + get some constants from java part. WIP