reduce existing functions scope to module instead of exporting with prototype