main function and the sub framework init finish

else function all done!