reimplementing some redbasic options and stuff