multiplexer to execute subs