modify current path based on custom path option