new version with less dependencies