made changes to allow base selection to run with autobed