make the functions work in bash as well