cleaned up for more front end angular stuff