added clone function to BASH