changed parser and added homeostasis thread