mod param rename
add err handling