fixed registration for real this time