adding latfm functionality