converted over user_plans.js