removed requirement for plyr and reshape2