add code files and work on implement/SL adapt