added support for partials [fixed #6]