add support for different auto open behaviors

fixes #5