refactoring to use meteor dependencies