fixed parameters sorting, exposed some utility methods