fixed help bug, moved code