rework loader for webpack