simple directive and handled the assets better