config sample added
code refactored
preparing for trash function