functions, fixed an issue with a linux install