init with existing code