added support for "name" option (fixes #1)