restore .version method, fix require paths