Fixed FE dependancy on WC
bug fixes
perms and reformatting
fixed bug, added perms