cleaned lucian a bit, will give it a rewrite soon