adds a check for direct access
changes the loader to match partent plugin