added filetype-specific goto function