little refactoring and changing API registration
refactor mailing after registration and fully added an API