seperated replace statements in hash to make things more os-agnostic
made the CSF functions be called in the correct way