added rudamentary level 2 capability. needs to be tested