fixed registration and java names