Shared enter

add init code