added extra features to the pirate program