added commandlineapp and sharedwords function