Fixing extend and configs environment call

Using another custom extend function  :heavy_check_mark: