updated refs and some minor changes