little refactor of registration
add a cocoapods