basic version complete
added user level vars
adding before h changes