* moved registry functions to ../lib/os.c