add validator
add test
fix support of other device loading