const_get method used and tmp files removed