improved ret command