better handling of ramname