throw error on missing param
add default main for example