added dir method for all objects