updated to match better meteor practices