* rewrite get site code logics.