better errors
added default values
commit