fix
add loading code via resource