reorganise static
add homepage support