various fixes in parameter checks