updated keep handling to properly handle the keep value distinguishes between the int values and the auto, always