improved extension configure