extensions should include the dot, e.g. ".sam"