added automain decorator