cleanup and added julia mode