new version with registration