cleaned up
framework for 3
half finnished perlframwork