fixed #165
issue #115 - implemented --standalone option