require doesn't seem to work right for plugins