fix arguments validation

fixes #4